package top.jiangqiang.qianyi.business.model.response;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import top.jiangqiang.qianyi.common.base.model.entity.BaseEntityResponse;
import top.jiangqiang.qianyi.common.storage.base.BaseStorageConfig;

import java.io.Serial;

/**
 * <p>
 * 系统文件表
 * </p>
 *
 * @author JiangQiang
 * @since 2024-07-19
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Schema(name = "SysFileDetailResponse", description = "系统文件表")
public class SysFileDetailResponse extends BaseEntityResponse {
    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "文件唯一标识")
    private String fileKey;

    @Schema(description = "原始文件名")
    private String name;

    @Schema(description = "存储器唯一特征值")
    private String storageId;

    @Schema(description = "存储器配置")
    private BaseStorageConfig storageConfig;

    @Schema(description = "文件的sha256，同一个文件允许在不同的存储器")
    private String sha256;

    @Schema(description = "文件类型")
    private String contentType;

    @Schema(description = "文件扩展名")
    private String extName;

    @Schema(description = "文件大小")
    private Long size;

}
